streamObjectResult

fun <TOutput> streamObjectResult(model: LanguageModel, output: Output<TOutput>, prompt: String? = null, messages: List<ModelMessage> = emptyList(), system: String? = null, temperature: Float? = null, topP: Float? = null, topK: Int? = null, maxOutputTokens: Int? = null, stopSequences: List<String> = emptyList(), seed: Int? = null, providerOptions: Map<String, JsonElement> = emptyMap(), abortSignal: AbortSignal = AbortSignalNever, presencePenalty: Float? = null, frequencyPenalty: Float? = null, responseFormat: ResponseFormat = ResponseFormat.Text, repairText: (String) -> String?? = null): StreamObjectResult<TOutput>

Stream a structured object, returning a typed StreamObjectResult — the v6 streamObject surface (the older streamObject returns a raw event flow and is deprecated). Use StreamObjectResult.partialObjectStream for incremental UI or StreamObjectResult.objectValue for the final value.